package com.ruoyi.labour.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labour.mapper.LabourRecruitMapper;
import com.ruoyi.labour.domain.LabourRecruit;
import com.ruoyi.labour.service.ILabourRecruitService;

/**
 * 招聘信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-14
 */
@Service
public class LabourRecruitServiceImpl implements ILabourRecruitService 
{
    @Autowired
    private LabourRecruitMapper labourRecruitMapper;

    /**
     * 查询招聘信息
     * 
     * @param id 招聘信息主键
     * @return 招聘信息
     */
    @Override
    public LabourRecruit selectLabourRecruitById(Long id)
    {
        return labourRecruitMapper.selectLabourRecruitById(id);
    }

    /**
     * 查询招聘信息列表
     * 
     * @param labourRecruit 招聘信息
     * @return 招聘信息
     */
    @Override
    public List<LabourRecruit> selectLabourRecruitList(LabourRecruit labourRecruit)
    {
        return labourRecruitMapper.selectLabourRecruitList(labourRecruit);
    }

    /**
     * 新增招聘信息
     * 
     * @param labourRecruit 招聘信息
     * @return 结果
     */
    @Override
    public int insertLabourRecruit(LabourRecruit labourRecruit)
    {
        return labourRecruitMapper.insertLabourRecruit(labourRecruit);
    }

    /**
     * 修改招聘信息
     * 
     * @param labourRecruit 招聘信息
     * @return 结果
     */
    @Override
    public int updateLabourRecruit(LabourRecruit labourRecruit)
    {
        return labourRecruitMapper.updateLabourRecruit(labourRecruit);
    }

    /**
     * 批量删除招聘信息
     * 
     * @param ids 需要删除的招聘信息主键
     * @return 结果
     */
    @Override
    public int deleteLabourRecruitByIds(Long[] ids)
    {
        return labourRecruitMapper.deleteLabourRecruitByIds(ids);
    }

    /**
     * 删除招聘信息信息
     * 
     * @param id 招聘信息主键
     * @return 结果
     */
    @Override
    public int deleteLabourRecruitById(Long id)
    {
        return labourRecruitMapper.deleteLabourRecruitById(id);
    }
}
